package com.sise.foodplatform.dao;

import com.sise.foodplatform.pojo.Food;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FoodMapper {
    public List<Food> getAllFood(@Param("foodName")String foodName, @Param("pageStart")int PageStart, @Param("pageSize")int pageSize);
    public int getFoodCounts(@Param("foodName")String foodName);
    public int deleteFood(@Param("id") int id);
    public int addFood(Food food);
    public Food getUpdateFood(int id);
    public int editFood(Food food);
    public List<Food> getFoodByName(String uid,@Param("pageStart")int PageStart, @Param("pageSize")int pageSize);
    public int getCountsByName(@Param("uid")String uid);
}
